package STUDENT.TranNamAnh.OOPs.baitap4;

import java.util.Scanner;

public class Views {

	public static void main(String[] agrs){
		Scanner sc = new Scanner(System.in);
		Object obj = new Object();
		Controllers objCtr = new Controllers();
		String dog;
		String cat;
		boolean isReal = true;
	do{
		do{
			System.out.println("Nhap so thang ban muon xem ngay: ");
			dog = sc.nextLine();
			obj.setThang(Integer.parseInt(dog));
		} while(dog.isEmpty());
		
		do{
			System.out.println("Nhap them so nam nua: ");
			dog = sc.nextLine();
			obj.setNam(Integer.parseInt(dog));
			System.out.println("Thang " + obj.getThang() + " nam " + obj.getNam() + " co so ngay la : " + objCtr.ctrSoNgay(obj));
			
		} while(dog.isEmpty());
		System.out.println("Ban muon doi tiep k ?   y/n ");
		cat = sc.nextLine();
		if(cat.equals("y"))
			isReal = true;
		else{
			isReal = false;
			System.out.println("Cam on da su dung dich vu ");
		}
	}while(isReal ==true);
	}
	

}
